Skip to content

Conversation

@jainankitk
Copy link
Contributor

@jainankitk jainankitk commented Oct 22, 2025

Description

Followup to #19573 for leveraging bulk collection lucene apis. Currently has changes for couple of unmerged due to which the diff looks much bigger.

Related Issues

Related to #19384

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Ankit Jain <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
Signed-off-by: Ankit Jain <[email protected]>
@github-actions
Copy link
Contributor

❌ Gradle check result for 729bf0a: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Comment on lines +154 to +155
cnt = stream.intoArray(upToExclusive, docBuffer);
sub.collect(docBuffer, upToBucketIndex);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue here is when cnt is less than docBuffer.length, sub.collect(docBuffer, upToBucketIndex); will still iterate through entire docBuffer.

So we can either pass in size e.g.

sub.collect(docBuffer, cnt, upToBucketIndex);

Or create a new array, which I think will be sub optimal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I realized this yesterday. Missed adding a comment. Due to this issue advanceExact might be getting invoked for target > doc resulting in an error

@jainankitk jainankitk changed the base branch from main to feature/3.x-lucene October 23, 2025 23:11
@jainankitk jainankitk marked this pull request as ready for review October 23, 2025 23:12
@github-actions
Copy link
Contributor

❌ Gradle check result for 09d5c71: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants